package web_model

import (
	"time"

	"gorm.io/gorm"
)

const TableNameTransPrintTpl = "trans_print_tpl"

// TransPrintTpl mapped from table <trans_print_tpl>
type TransPrintTpl struct {
	ID        int64          `gorm:"column:id;type:INTEGER;primaryKey" json:"id"`
	Name      string         `gorm:"column:name;type:TEXT" json:"name"`
	Code      string         `gorm:"column:code;type:TEXT" json:"code"`
	Tmpl      string         `gorm:"column:tmpl;type:TEXT" json:"tmpl"`
	CreatedAt time.Time      `gorm:"column:created_at;type:DATETIME" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:DATETIME" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:DATETIME" json:"deleted_at"`
	CreatedBy string         `gorm:"column:created_by;type:TEXT" json:"created_by"`
}

// TableName TransPrintTpl's table name
func (*TransPrintTpl) TableName() string {
	return TableNameTransPrintTpl
}
